package com.hanfengyi.feign;

import com.hanfengyi.fallback.StaticPageFignFallBack;
import com.hanfengyi.hrm.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * User: Han
 * Date: 2020/2/27
 * Time: 12:57
 * Description:
 */
@FeignClient(value = "static-page-server",fallbackFactory = StaticPageFignFallBack.class)
public interface StaticPageFignClient{
    @PostMapping("/static/page")
    AjaxResult pageStaticAction(@RequestParam("key")String key, @RequestParam("templateName")String templateName);

}